// 定义分类相关api
import request from '@/utils/request'
// 获取所有分类
export const findAllCatetory = () => {
  return request('/home/category/head', 'get')
}

// 获取一级类目商品
export const getTopCategory = (id) => {
  return request('/category', 'get', { id })
}
// 获取二级商品筛选
export const getSubFilter = (id) => {
  return request('/category/sub/filter', 'get', { id })
}
// 加载商品列表

export const getGoodList = (params) => {
  return request('/category/goods/temporary', 'post', params)
}
